﻿<UserControl
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
    xmlns:app="clr-namespace:DC.FileUpload"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" x:Class="DC.FileUpload.FileUploadControl"
    mc:Ignorable="d">
    <UserControl.Resources>
        <Style x:Key="TextStyle" TargetType="TextBlock">
            <Setter Property="Foreground" Value="#ff444444" />
            <Setter Property="FontSize" Value="12" />
        </Style>
        <Style x:Key="ButtonStyle" TargetType="Button">
            <Setter Property="Foreground" Value="#ff444444" />
            <Setter Property="FontSize" Value="12" />
        </Style>
        <Style x:Key="CheckBoxStyle" TargetType="CheckBox">
            <Setter Property="Foreground" Value="#ff444444" />
            <Setter Property="FontSize" Value="12" />
        </Style>
    </UserControl.Resources>
	<Canvas x:Name="LayoutRoot" Height="50" Width="298" Background="#FF2A2929">
		<ItemsControl x:Name="fileList" Width="155" Height="27" Canvas.Left="15" Canvas.Top="2" >
			<ItemsControl.ItemTemplate>
				<DataTemplate>
					<app:FileUploadRowControl Margin="0,2"/>
				</DataTemplate>
			</ItemsControl.ItemTemplate>
		</ItemsControl>

		<StackPanel Orientation="Horizontal" Height="30" Width="95" HorizontalAlignment="Right" Canvas.Left="199">
			<Button x:Name="addFilesButton" Content="Select" Margin="1,5" Style="{StaticResource ButtonStyle}" />
			<Button x:Name="uploadButton" Content="Upload" Margin="1,5" Style="{StaticResource ButtonStyle}" Visibility="Collapsed" />
			<Button x:Name="clearFilesButton" Content="Clear" Margin="1,5" Style="{StaticResource ButtonStyle}" />
		</StackPanel>
		<Canvas Height="16" Width="290" Canvas.Left="3" Canvas.Top="29" d:LayoutOverrides="VerticalAlignment">
			<ProgressBar x:Name="progressBar" Minimum="0" Height="14" Width="291" Margin="0,3,0,0" />
			<TextBlock x:Name="timeLeftTextBlock" Foreground="#ff444444" FontSize="10" Margin="2" VerticalAlignment="Center" HorizontalAlignment="Center" Canvas.Left="47" Canvas.Top="2" Opacity="0" />
		</Canvas>
	</Canvas>
</UserControl>
